package com.robusta.cityuate.activities;
//representing one item of the list of reminders

import com.robusta.cityuate.R;

import android.content.Context;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;

public class CustomItem extends LinearLayout{

	private TextView title;
	private TextView subtitle;
	private String id;

//constructor
	public CustomItem(Context context) {
		super(context);
		View.inflate(context, R.layout.list_item,this);
		title = (TextView)findViewById(R.id.item_subject);
		subtitle = (TextView)findViewById(R.id.item_subtitle);
	}
//setting the values of the view (2) TextView and its Database ID
	public void setValues(String id,String title,String subtitle){
		this.id = id;
		this.title.setText(title);
		this.subtitle.setText(subtitle);
	}
//getter for Database ID
	public String getDBId(){
		return id;
	}
}
